<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>


<form action="/update" method="post">
    <input type="text" name="id" value="${book.id}" placeholder="请输入id" style="display: none">
    <input type="text" name="name" value="${book.name}">
    <input type="text" name="pice" value="${book.pice}">
    <c:if test="${book.status == 1}">
        <input type="text" name="status" value="${book.status}" style="display: none">
        <p>已借走</p>
    </c:if>
    <c:if test="${book.status == 2}">
        <input type="text" name="status" value="${book.status}" style="display: none">
        <p>未借走</p>
    </c:if>

    <input type="submit" value="更新">
</form>

</body>
</html>
